home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / cp.xml < prev    next >
Text File  |  2002-09-24  |  2KB  |  60 lines

  1. <search function="cp">
  2.   <name>CodeProject (CP)</name>
  3.   <description>
  4.     Search CodeProject for source code, samples and tutorials<br />
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>/a</td><td> - </td><td>Search for authors.</td></tr>
  8.       <tr><td>/t</td><td> - </td><td>Search in titles.</td></tr>
  9.       <tr><td>/d</td><td> - </td><td>Search in descriptions.</td></tr>
  10.       <tr><td>/k</td><td> - </td><td>Search for keywords.</td></tr>
  11.     </table>
  12.     <div class="helpboxDescLabels">Example:</div>
  13.     <table class="helpboxDescTable">
  14.       <tr><td>cp Saurwein /a</td></tr>
  15.     </table>
  16.   </description>
  17.   <category>Computers</category>
  18.   <link>http://www.codeproject.com/</link>
  19.   <contributor>Andreas Saurwein</contributor>
  20.   <form name="cpf" action="http://www.codeproject.com/info/search.asp" method="get">
  21.     <input type="hidden" name="TARGET" value="" />
  22.     <input type="hidden" name="st" value="kw" />
  23.   </form>
  24.   <script><![CDATA[
  25.     function cp(q)
  26.     {
  27.       var args = parseArgs(q, "a, t, d, k");
  28.       
  29.       if( nullArgs("cp", q) )
  30.         return false;
  31.       else if( args.switches.length == 1 )
  32.       {
  33.         switch( args.switches[0].name )
  34.         {
  35.           case "a": document.cpf.st.value = "au"; break;
  36.           case "t": document.cpf.st.value = "tt"; break;
  37.           case "d": document.cpf.st.value = "ds"; break;
  38.           case "k": document.cpf.st.value = "kw"; break;
  39.         }
  40.         document.cpf.TARGET.value = args.q;
  41.         submitForm(cpf);
  42.       }
  43.       else if( args.switches.length > 1 )
  44.         nullArgs("cp","?");
  45.       else
  46.       {
  47.         document.cpf.st.value = "kw"
  48.         document.cpf.TARGET.value = args.q;
  49.         submitForm(cpf);
  50.       }
  51.     }
  52.   ]]></script>
  53.  
  54.   <copyright>
  55.   Copyright (c) 2002 David Bau
  56.   Distributed under the terms of the
  57.   GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  58.   </copyright>
  59. </search>
  60.